import React from 'react';
import ReactDOM from 'react-dom';
// 1. 下包: npm i react-redux
import { Provider } from 'react-redux';
import App from './App';
import store from './store';

ReactDOM.render(
  // 2. 使用Provider组件, 包住App, 设置store属性, 建立连接
  <Provider store={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);
